Manages the mouse devices available in the component. More...
Public Member Functions | |
MouseDeviceManager * | createOrRetrieve (const nkMemory::StringView &name) |
MouseDeviceManager * | get (const nkMemory::StringView &name) |
void | rename (const nkMemory::StringView ¤tName, const nkMemory::StringView &newName) |
void | erase (const nkMemory::StringView &name) |
Manages the mouse devices available in the component.
At all times, manager owns any memory allocated inside. External code should never delete memory returned by it.
MouseDeviceManager* nkInputs::MouseDeviceManager::createOrRetrieve | ( | const nkMemory::StringView & | name | ) |
Creates if unavailable, or retrieves if available, a mouse device.
name | The name of the device to retrieve. |
MouseDeviceManager* nkInputs::MouseDeviceManager::get | ( | const nkMemory::StringView & | name | ) |
Retrieves a mouse device.
name | The name of the device to retrieve. |
void nkInputs::MouseDeviceManager::rename | ( | const nkMemory::StringView & | currentName, |
const nkMemory::StringView & | newName | ||
) |
Renames a mouse device.
currentName | The name of the device to rename. |
newName | The name to reassign to the device. |
void nkInputs::MouseDeviceManager::erase | ( | const nkMemory::StringView & | name | ) |
Erases and frees a mouse device.
name | The name of the device to erase. |